package com.youlu.campus.common.model;

import com.youlu.campus.common.exception.ApiErrorCode;

public enum SfErrorCode implements ApiErrorCode {
    SUCCESS(1, "OK"),
    X_APPLICATION_EMPTY(50001,"应用key不能为空"),
    X_APPLICATION_N_EQ(50002,"应用key与约定不相等"),
    APP_SECRET_EMPTY(50003,"应用秘钥不能为空"),
    APP_SECRET_N_EQ(50004,"应用秘钥与约定不相等"),
    BODY_EMPTY(50005,"报文主题内容不能为空"),
    SIGN_N_EQ(50006,"签名信息不相等"),
    ;

    SfErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private final int code;

    private final String message;


    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
